{% extends "base.html" %}

{% block title %}Авторизация{% endblock %}

{% block head %}<link rel="stylesheet" href="{{ MEDIA_URL }}css/login.css"/>{% endblock %}

{% block body %}
  <body class="login">
    <form id="loginform" action="." method="post" enctype="application/x-www-form-urlencoded" class="simpleform">
        <p>
        {% if form.errors %}<p class="error">Неправильно введён логин или пароль</p>{% endif %}
        <label for="username">логин:</label>
        
        
        {{ form.username }}
        <script type="text/javascript">
            document.getElementById('id_username').focus();
        </script>
        </p>
<p>
        <label for="password">пароль:</label>
   
        <input name="password" type="password" id="id_password"/>
   </p>
        <input id="submit" value="Войти" type="submit"/>
        <input type="hidden" name="next" value="{{ next|escape }}"/>
    </form>

  </body>
{% endblock %}
